package cn.iocoder.yudao.module.member.controller.app.project.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 服务项目 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class AppProjectBaseVO {

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotNull(message = "名称不能为空")
    private String name;

    @Schema(description = "服务介绍", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "服务介绍不能为空")
    private String introduce;

    @Schema(description = "原价", requiredMode = Schema.RequiredMode.REQUIRED, example = "28287")
    @NotNull(message = "原价不能为空")
    private String originalPrice;

    @Schema(description = "折扣价格", example = "5733")
    private String discountPrice;

    @Schema(description = "服务时长(分钟)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "服务时长(分钟)不能为空")
    private String serviceDuration;

    @Schema(description = "项目主图", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "项目主图不能为空")
    private String mainImageUrl;

}
